<?php

require('simple_html_dom_helper.php');
require 'function.php';

$page_url = 'http://dothi.net/doanh-nghiep/15238/chu-tich-thuduc-house-chia-se-chien-luoc-tim-von.htm';    

$html = __advance_get_html($page_url);
$dom = str_get_dom($html);
$title = '';
$head = '';
$content = '';

$title_dom = $dom->find(htmlspecialchars_decode('div#colLeft div.boxShareColLeft div#ctl01_Middle_Left_Zone_ctl00_articleView_pnlArticle div.padT15 div h1.f-23'), 0);
if(method_exists($title_dom, 'innertext')){
    $title = $title_dom->innertext();
}

unset($title_dom);


$content_dom = $dom->find('div#colLeft div.boxShareColLeft div#ctl01_Middle_Left_Zone_ctl00_articleView_pnlArticle div.padT15 div.padT10', 0);
if(method_exists($content_dom, 'innertext')){
    $content.= $content_dom->innertext();
}
unset($content_dom);

echo "title:<br/> ";
echo $title;
echo "<br/>";

echo "content:<br/> ";
echo $content;
echo "<br/>";

